#!/usr/bin/python

import MySQLdb;
import sys;

DB_USERNAME = "root";
DB_HOST = "localhost";
DB_PASSWORD = "zdr18com";
DB_DATABASE= "nlp";


db = MySQLdb.connect(host=DB_HOST, user=DB_USERNAME, passwd=DB_PASSWORD, db=DB_DATABASE);

sentence = '';

for i in range(1, len(sys.argv)):
    sentence += sys.argv[i] + " ";

import semantic;
retval = semantic.sql_demo_sentence(db, sentence);
print "retval =", retval
